package show;

import Game.GameBox;
import Game.Group;
import Game.Block;

public class showBox_Group {
    public static void show(GameBox gameBox , Group group){
        for (int y = 0 ; y < gameBox.getHeight() ; y ++){
            for (int x = 0 ; x < gameBox.getWidth() ; x ++){
                boolean tag = false ;

                for (Block block : group.blocks){
                    if (x == block.position.getX() + group.position.getX()){
                        if (y == block.position.getY() + group.position.getY()){
                            tag = true ;
                            System.out.print("O ");
                        }
                    }
                }
                if (tag) continue;

                if (gameBox.tags[x][y] == 0){
                    System.out.print("* ");
                }else{
                    System.out.print("O ");
                }

            }
            System.out.println();
        }
    }

}
